package java;

import java.util.Scanner;

public class yy {

    //创建一个类对姓名依次储存
    public static void Student(String person [],int array [],int day []){
        Scanner scan = new Scanner(System.in);
        for (int i=0;i<3;i++){
            System.out.println("请输入第"+(i+1)+"位同学姓名");
            person[i] = scan.nextLine();
        }
        for (int i=0;i<3;i++){
            System.out.println("请输入第"+(i+1)+"位同学学号");
            array[i] = scan.nextInt();
        }
        for (int i=0;i<3;i++){
            System.out.println("请输入第"+(i+1)+"位同学年龄");
            day[i] = scan.nextInt();
        }
    }
}
